<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/include/TLDInclude.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>同行资料录入</title>
<link href="<%=request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/select-ui.min.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
    $(".select1").uedSelect({
		width : 345			  
	});
	$(".select2").uedSelect({
		width : 167  
	});
	$(".select3").uedSelect({
		width : 100
	});
});
function checkdata(){
	  if ( $("#name").val() == '') {
		  alert("带*的值必须录入");
		  return false;
	  }
	return true;
}
</script>

</head>

<body>
<c:if test="${not empty msg}">
			<div id="message" style="color: red;" align="center">
				${msg}
			</div>
</c:if>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">同行资料</a></li>
    </ul>
    </div>
    
    <div class="formbody">
    
    <div class="formtitle"><span>同行资料录入</span></div>
    <form:form action="${ctx}/admin/peeradd" method="post" modelAttribute="peer" >
    <input type=hidden name="peerId"  value="${peer.peerId}"/>
    <ul class="forminfo">
    <li><label>姓名</label><input id="name" name="name" type="text" value="${peer.name}" class="dfinput" /><i>*</i></li>
    <li><label>手机号码</label><input id="phoneno" name="phoneno" value="${peer.phoneno}" type="text" class="dfinput" /></li>
    <li><label>QQ</label><input name="qq" value="${peer.qq}" type="text" class="dfinput"  /></li>
    <li><label>&nbsp;</label><input name="" type="submit" onclick="javascript:return checkdata()" class="btn" value="确认保存"/></li>
    </ul>
    
    </form:form>
    </div>


</body>

</html>
